package cc.openhome;

/**
 * Created by xuzhihan on 17/3/19.
 */
public class Boat implements Swimmer {
    protected String name;

    public Boat (String name){
        this.name=name;
    }
    @Override
    public void swim(){
        System.out.printf("船在水面上 %s航行%n",name);
    }
}
